<?php

$filename = "f:/upload/".$_GET["src"];
$size = getimagesize($filename); //��ȡmime��Ϣ
//print_r($size);

$fp=fopen($filename, "rb"); //�����Ʒ�ʽ���ļ�
if ($size && $fp) {
  header("Content-type: {$size['mime']}");
  $fs = filesize($filename);
  //header("Accept-Ranges: bytes");
  header("Content-Length: {$fs}");
  fpassthru($fp); // ����������
  fclose($fp);
  exit;
 } else {
    // error
}
?>
